import { DescItem } from "/@/components/Description";
import { BasicColumn } from "/@/components/Table";

export const descSchema: DescItem[] = [
  {
    field: "userName",
    label: "申请人",
  },
  {
    field: "userCode",
    label: "学号",
  },
  {
    field: "collegeName",
    label: "所在学院",
  },
  {
    field: "groupName",
    label: "申请小组",
  },
  {
    field: "reason",
    label: "申请理由",
  },
  {
    field: "applyTime",
    label: "申请时间",
  },
];

export const basicColumns: BasicColumn[] = [
  {
    dataIndex: "userId",
    title: "申请人主键",
    ifShow: false,
  },
  {
    dataIndex: "groupId",
    title: "小组主键",
    ifShow: false,
  },
  {
    dataIndex: "userName",
    title: "申请人",
  },
  {
    dataIndex: "userCode",
    title: "学号",
  },
  {
    dataIndex: "collegeName",
    title: "所在学院",
    defaultHidden: true,
  },
  {
    dataIndex: "groupName",
    title: "申请小组",
  },
  {
    dataIndex: "reason",
    title: "申请理由",
    defaultHidden: true,
  },
  {
    dataIndex: "applyTime",
    title: "申请时间",
  },
];
